package com.yh.dp.principle.lsp;

/**
 * @ClassName Sniper
 * @Description 狙击手
 * @Author 0715-YuHao
 * @Date 2021/1/3 15:07
 */
public class Sniper extends Soldier {

    @Override
    public void killEnemy() {
        System.out.println("狙击手杀敌：");
        //先观察
        AWM awm = (AWM) getGun();
        awm.zoomOut();
        //射击
        awm.shoot();
    }
}
